Package com.cisco.pt.ipc.sim.impl
Class UsbControllerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.UsbControllerImpl
- All Implemented Interfaces:
IPCObject,Process,UsbController
Information provided by the PKI file:
\class UsbController
\brief UsbController.
\example network().getDevice("PC0").getUsbPortAt(0).getController()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionUsbControllerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:voidbegin(int speed) Information provided by the PKI file:booleandeployProjectFromFileSystem(String projectName, String path) Information provided by the PKI file:voidend()Information provided by the PKI file:booleanisPortUp()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:intpeek()Information provided by the PKI file:peekChar()Information provided by the PKI file:intInformation provided by the PKI file:intread()Information provided by the PKI file:readChar()Information provided by the PKI file:readLine()Information provided by the PKI file:voidsetSerialMonitoring(boolean bMonitoring) Information provided by the PKI file:intwrite(int value) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
UsbControllerImpl
public UsbControllerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
begin
public void begin(int speed) Information provided by the PKI file:
\brief Start the UsbController \param speed, the speed at which the Usb Controller is operating at- Specified by:
beginin interfaceUsbController- Parameters:
speed- Takes in a parameter of speed
-
end
public void end()Information provided by the PKI file:
\brief End the UsbController- Specified by:
endin interfaceUsbController
-
available
public int available()Information provided by the PKI file:
\brief Returns number of bytes available in the buffer \return int, number of bytes- Specified by:
availablein interfaceUsbController- Returns:
- int Returns a int
-
print
Information provided by the PKI file:
\brief Print string to the console \param value, the string to be printed \return int, the length of the string- Specified by:
printin interfaceUsbController- Parameters:
value- Takes in a parameter of value- Returns:
- int Returns a int
-
readLine
Information provided by the PKI file:
\brief Read the next line in the buffer \return string, the next line- Specified by:
readLinein interfaceUsbController- Returns:
- String Returns a String
-
readChar
Information provided by the PKI file:
\brief Read the next character in the buffer \return string, the next character in string format- Specified by:
readCharin interfaceUsbController- Returns:
- String Returns a String
-
peekChar
Information provided by the PKI file:
\brief Peek the next character in the buffer \return string, the next character in string format- Specified by:
peekCharin interfaceUsbController- Returns:
- String Returns a String
-
read
public int read()Information provided by the PKI file:
\brief Read the next character in the buffer - same as readChar() \return string, the next character in string format- Specified by:
readin interfaceUsbController- Returns:
- int Returns a int
-
peek
public int peek()Information provided by the PKI file:
\brief Peek the next character in the buffer - same as peekChar() \return string, the next character in string format- Specified by:
peekin interfaceUsbController- Returns:
- int Returns a int
-
write
public int write(int value) Information provided by the PKI file:
\brief Write a character to the console \param value, ascii value of the character to be written \- Specified by:
writein interfaceUsbController- Parameters:
value- Takes in a parameter of value- Returns:
- int Returns a int
-
setSerialMonitoring
public void setSerialMonitoring(boolean bMonitoring) Information provided by the PKI file:
\brief Set Serial Monitoring on or off \param bMonitoring, true for on and false for off- Specified by:
setSerialMonitoringin interfaceUsbController- Parameters:
bMonitoring- Takes in a parameter of bMonitoring
-
isSerialMonitoring
public boolean isSerialMonitoring()Information provided by the PKI file:
\brief Check if Serial Monitoring is on or off \return bool, true for on and false for off- Specified by:
isSerialMonitoringin interfaceUsbController- Returns:
- boolean Returns a boolean
-
deployProjectFromFileSystem
Information provided by the PKI file:
\brief Deploy project from file system \param projectName, name of the project in string \param path, path of the project in string \return bool, true if the project was successfully deployed and false if it's not- Specified by:
deployProjectFromFileSystemin interfaceUsbController- Parameters:
projectName- Takes in a parameter of projectNamepath- Takes in a parameter of path- Returns:
- boolean Returns a boolean
-
isPortUp
public boolean isPortUp()Information provided by the PKI file:
\brief Check if port is powered on \return bool, true if it's powered on and false if it's not- Specified by:
isPortUpin interfaceUsbController- Returns:
- boolean Returns a boolean
-
isProtocolUp
public boolean isProtocolUp()Information provided by the PKI file:
\brief Check if port's protocol is up \return bool, true if port's protocol is up and false if it's not- Specified by:
isProtocolUpin interfaceUsbController- Returns:
- boolean Returns a boolean
-